// components/album-card/index.ts
Component({

  options:{
    styleIsolation: 'isolated'
  },
  /**
   * 组件的属性列表
   */
  properties: {
    imageList:{
      type: Array,
      value: []
    }
  },

  
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    ViewImage(e) {
      var imgList = this.data.imageList
      console.log(imgList)
      var urlList = []
      imgList.forEach(item => {
        if(item.img){
          urlList.push(item.img)
        }
      })
      wx.previewImage({
        urls: urlList,
        current: e.currentTarget.dataset.url
      });
    },
  }
})
